<template>
  <el-dialog
    title="不通过原因"
    :visible.sync="noPassDialogData.isShow"
    width="550px"
    top="35vh"
    @close="closeNoPassDialog"
  >
    <el-input
      v-model="noPassReason"
      type="textarea"
      :rows="10"
      placeholder="请输入"
      resize="none"
      class="textarea"
    ></el-input>
    <span slot="footer" class="dialog-footer">
      <el-button type="success" plain @click="noPassDialogData.isShow = false"
        >取 消</el-button
      >
      <el-button
        type="success"
        class="submitPass"
        @click="noPassDialogData.isShow = false"
        >确 认</el-button
      >
    </span>
  </el-dialog>
</template>
<script>
export default {
  props: ['noPassDialogData'],
  data() {
    return {
      noPassReason: '' // 审核不通过原因
    }
  },
  methods: {
    // 关闭对话框回调
    closeNoPassDialog() {
      // 清空审核不通过原因
      this.noPassReason = ''
    }
  }
}
</script>
<style lang="less" scoped>
.textarea {
  margin-bottom: 50px;
}
</style>
